/*
 * @Author: peng.chen2 peng.chen2@rt-mart.com
 * @Date: 2025-07-23 10:27:37
 * @LastEditors: peng.chen2
 * @LastEditTime: 2025-08-01 11:07:14
 * @FilePath: /rt-monitoring/src/main.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react'
import ReactDOM from 'react-dom/client'
import zhCN from 'antd/locale/zh_CN'
import { ConfigProvider } from 'antd'
import App from './App'
import { ThemeProvider } from './contexts/ThemeContext'
import { TableProvider } from './contexts/TableContext'
import { GlobalProvider } from './contexts/GlobalContext'

ReactDOM.createRoot(document.getElementById('root')!).render(
  <ThemeProvider>
    <ConfigProvider locale={zhCN}>
      <GlobalProvider>
        <TableProvider>
          <App />
        </TableProvider>
      </GlobalProvider>
    </ConfigProvider>
  </ThemeProvider>
)
